<!--代码块-->
<script setup lang="ts">
import { useCount } from '@/hooks'

const { num, start } = useCount()
</script>
<!--页面显示-->
<template>
  <div>
    <button @click="start(3)">{{ num ? num : '获取验证码' }}</button>
  </div>
</template>
<!--样式-->
<style></style>
